#include<iostream>
#include<fstream>
#include<string>

using namespace std;

int main() {
    system("chcp 65001 > nul");
    fstream file;

    file.open("input/bilibili-titles.txt", ios::in);
    if (!file.is_open()) {
        cout << "文件打开失败。" << endl;
        return 0;
    }

    string buf;                    //定义字符串
    while (getline(file, buf))    //利用getline函数，将一行内容放入字符串中
    {
        string lineStr = buf + "\t";
        getline(file, buf);
        lineStr += buf + "\t";
        getline(file, buf);
        lineStr += buf ;
        cout << lineStr << endl;
    }


    file.close();


    return 0;
}